package cn.dazhou.networkdemo

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import cn.dazhou.networkdemo.databinding.ActivityGetImeiBinding

class GetImeiActivity : AppCompatActivity() {

    private val binding by lazy { ActivityGetImeiBinding.inflate(layoutInflater) }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(binding.root)
        binding.getImei.setOnClickListener { binding.imeiText.text = NetworkUtil.getImei() }
        binding.getIccid.setOnClickListener { binding.iccidText.text = NetworkUtil.getIccid() }
        binding.getIccid2.setOnClickListener { binding.iccidText2.text = NetworkUtil.getIccid2() }
        binding.getIccid3.setOnClickListener { binding.iccidText3.text = NetworkUtil.getIccid3() }
        binding.getIccid4.setOnClickListener { binding.iccidText4.text = NetworkUtil.getIccid4() }
        binding.getImsi.setOnClickListener { binding.imsiText.text = NetworkUtil.getImsi() }
    }

}